package com.imooc.springboot.dubbo.nilinili.provider.mapper;

import com.imooc.springboot.dubbo.nilinili.provider.entity.po.CommentPO;
import com.imooc.springboot.dubbo.nilinili.provider.entity.po.MyCommentPO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CommentMapper {
    List<CommentPO> selectCommentByPhotoId(Integer id);

    Integer addComment(CommentPO commentPO);

    List<MyCommentPO> getCommentByUserId(String user_id);

    int addCommentCount(String id,int count);

    Integer getCommentCount(String id);

    int deleteComment(String photoId);
}
